// 定义统一的响应状态码
const CODE = {
    SUCCESS: 0,
    SERVER_ERROR: 500,
    PARAM_ERROR: 400,
    UNAUTHORIZED: 401,
    FORBIDDEN: 403,
    NOT_FOUND: 404,
    LOGIN_ERROR: 1001,
    TOKEN_EXPIRED: 1002,
    DUPLICATE_ENTRY: 1003
};

module.exports = CODE;
